package controller.semestre
{
	import model.AnneeEtude;
	import model.Semestre;
	import model.proxy.SemestreProxy;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	public class ObtenirListeSemestreCommand extends SimpleCommand
	{
		/** 
		 * Constructor 
		 */
		public function ObtenirListeSemestreCommand()
		{
			super();
		}
		
		/** 
		 * Initialize all commands/controllers of the application 
		 */
		override public function execute(note : INotification) : void 
		{  
			var anneeEtude:AnneeEtude = note.getBody() as AnneeEtude;
			var semestreProxy:SemestreProxy = facade.retrieveProxy(SemestreProxy.NAME) as SemestreProxy;	
			semestreProxy.ObtenirListeSemestres(anneeEtude);
		} 
	}
}